#define _CRT_SECURE_NO_WARNINGS

#include <stdio.h>
#include <math.h>

double fact(double x)
{
    double count = 1;
    for (int i = 1; i <= x; i++)
        count *= i;
    return count;
}

int main()
{
    double x;
    scanf("%lf", &x);
    double sum = 0;
    double flag = 1;
    double term = x;
    for (double i = 1; term >= 0.000001; i += 2)
    {
        term = pow(x, i) / fact(i);
        sum += term * flag;
        flag = -flag;
    }
    printf("sin(x)=%.6f", sum);
    return 0;
}